package com.andy.customerService.feign;

import com.andy.customerService.entity.User;
import com.andy.customerService.pojo.request.UserRequestParam;
import com.andy.customerService.vo.JsonPageResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "admin")
public interface FeignService {

    @PostMapping("/user/list")
    public JsonPageResult<Object> getUsers(@RequestBody UserRequestParam requestParam);

}
